import type { RouteRecordRaw } from 'vue-router';

import { BasicLayout } from '#/layouts';

const routes: RouteRecordRaw[] = [
  {
    component: BasicLayout,
    meta: {
      icon: 'lucide:trello',
      order: 10,
      title: '组织权限',
      // authority: ['circleManager'],
    },
    name: 'System',
    path: '/system',
    children: [
      {
        name: 'SystemUser',
        path: '/system/user',
        component: () => import('#/views/system/user/index.vue'),

        meta: {
          icon: 'lucide:users',
          title: '用户管理',
        },
      },
      {
        name: 'SystemRole',
        path: '/system/role',
        component: () => import('#/views/system/role/index.vue'),

        meta: {
          icon: 'lucide:users-round',
          title: '角色管理',
        },
      },
      {
        name: 'SystemMenu',
        path: '/system/menu',
        component: () => import('#/views/system/menu/index.vue'),
        meta: {
          icon: 'lucide:folder-tree',
          title: '菜单管理',
        },
      },
      {
        name: 'SystemPermission',
        path: '/system/permission',
        component: () => import('#/views/system/permission/index.vue'),
        meta: {
          icon: 'lucide:book',
          title: '权限管理',
        },
      },
      {
        name: 'SystemTag',
        path: '/system/tag',
        component: () => import('#/views/system/tag/index.vue'),
        meta: {
          icon: 'lucide:tag',
          title: '标签管理',
        },
      },
      {
        name: 'SystemDept',
        path: '/system/dept',
        component: () => import('#/views/system/dept/index.vue'),
        meta: {
          icon: 'lucide:git-branch',
          title: '部门管理',
        },
      },
      {
        name: 'SystemPost',
        path: '/system/post',
        component: () => import('#/views/system/post/index.vue'),
        meta: {
          icon: 'lucide:book-user',
          title: '岗位管理',
        },
      },
    ],
  },
];

export default routes;
